
/* ========================================
   Global Styles
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    min-height: 100vh;
    background: linear-gradient(
        135deg,
        #0798b0,
        #59d98b
    );
}

/* ========================================
   Page Container
======================================== */

.page-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

/* ========================================
   Shipping Card
======================================== */

.shipping-card {
    width: 100%;
    max-width: 1093px;
    background: #ffffff;
    border-radius: 18px;
    padding: 40px 49px 27px;
}

/* ========================================
   Heading
======================================== */

.shipping-card h2 {
    font-size: 20px;
    font-weight: 400;
    color: #111111;
    margin-bottom: 15px;
}

/* ========================================
   Form Layout
======================================== */

form {
    width: 100%;
}

.form-row {
    display: grid;
    gap: 22px;
    margin-bottom: 17px;
}

.row-one {
    grid-template-columns: 1fr 1.08fr 1fr;
}

.row-two {
    grid-template-columns: 1fr 1fr;
    padding-right: 0;
}

.row-three {
    grid-template-columns: 1.25fr 1fr 1fr 0.62fr;
    gap: 11px;
    margin-top: 17px;
}

/* ========================================
   Inputs and Select
======================================== */

input,
select {
    width: 100%;
    height: 53px;
    border: 1px solid #bcbcbc;
    border-radius: 13px;
    padding: 0 30px;
    background: #ffffff;
    color: #222222;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 400;
    outline: none;
    transition: border-color 0.2s ease;
}

input::placeholder {
    color: #a9a9a9;
    opacity: 1;
}

input:focus,
select:focus {
    border-color: #0a9fa7;
}

/* Full Width Address Fields */

.full-width {
    display: block;
    margin-bottom: 17px;
}

/* ========================================
   Phone Number Group
======================================== */

.phone-group {
    display: flex;
    align-items: center;
    height: 53px;
    border: 1px solid #bcbcbc;
    border-radius: 13px;
    overflow: hidden;
    background: #ffffff;
}

.phone-group span {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 12px 0 17px;
    color: #222222;
    font-size: 16px;
    font-weight: 400;
    border-right: 1px solid #bcbcbc;
    flex-shrink: 0;
}

.phone-group input {
    height: 100%;
    border: none;
    border-radius: 0;
    padding: 0 10px;
    min-width: 0;
}

/* ========================================
   State Dropdown
======================================== */

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    padding-right: 40px;
    color: #a9a9a9;

    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23aaaaaa' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");

    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 19px;
}

select:valid {
    color: #222222;
}

select option {
    color: #222222;
    font-family: "Poppins", sans-serif;
}

/* ========================================
   Continue Button
======================================== */

.button-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 35px;
}

button {
    width: 218px;
    height: 54px;
    border: none;
    border-radius: 30px;
    background: linear-gradient(
        90deg,
        #069caf,
        #20a95e
    );
    color: #ffffff;
    font-family: "Poppins", sans-serif;
    font-size: 21px;
    font-weight: 400;
    cursor: pointer;
    transition: transform 0.2s ease,
                opacity 0.2s ease;
}

button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

button:active {
    transform: scale(0.98);
}

/* ========================================
   Responsive Design
======================================== */

/* Tablets */

@media (max-width: 900px) {

    .shipping-card {
        padding: 35px 30px 30px;
    }

    .row-one {
        grid-template-columns: 1fr 1fr;
    }

    .row-one .phone-group {
        grid-column: span 2;
    }

    .row-two {
        grid-template-columns: 1fr;
    }

    .row-three {
        grid-template-columns: 1fr 1fr;
    }

    .row-three input:first-child {
        grid-column: span 2;
    }

}

/* Mobile */

@media (max-width: 600px) {

    .page-container {
        padding: 20px 15px;
    }

    .shipping-card {
        padding: 28px 20px 25px;
        border-radius: 15px;
    }

    .shipping-card h2 {
        font-size: 19px;
        margin-bottom: 18px;
    }

    .form-row,
    .row-one,
    .row-two,
    .row-three {
        display: flex;
        flex-direction: column;
        gap: 14px;
        margin-bottom: 14px;
    }

    .row-one .phone-group {
        grid-column: auto;
    }

    .row-three input:first-child {
        grid-column: auto;
    }

    input,
    select,
    .phone-group {
        height: 53px;
    }

    input,
    select {
        font-size: 14px;
        padding: 0 20px;
    }

    .phone-group span {
        font-size: 14px;
        padding-left: 15px;
    }

    .phone-group input {
        padding: 0 10px;
    }

    .full-width {
        margin-bottom: 14px;
    }

    .row-three {
        margin-top: 0;
    }

    .button-container {
        margin-top: 25px;
    }

    button {
        width: 100%;
        height: 53px;
        font-size: 18px;
    }

}